package com.base.cn.platform.os.entity.exam.template;

import lombok.Data;

/**
 * 判断类型
 *
 * @author s.li
 * @date 2018/12/11
 */
@Data
public abstract class JudgementType {
    /**试题类型，1单选，2多选，3判断，4填空，5简答，6包含有小试题*/
    private int type;

    /**是否是单选题*/
    public boolean isSingle(){
        return this.getType()==1;
    }

    /**是否是多选题*/
    public boolean isMulti(){
        return this.getType() ==2;
    }

    /**是否是判断题*/
    public boolean isJudge(){
        return this.getType() ==3;
    }

    /**是否是填空题*/
    public boolean isBlank(){
        return this.getType() ==4;
    }

    /**是否是简答题*/
    public boolean isSpecial(){
        return this.getType() ==5;
    }
}
